package org.example.payservice.controller;


import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/provider")
public class ProviderController {


    @GetMapping("/test")
    public String test(){
        return "pay restful provider";
    }

    @PostMapping("/test2")
    public String test2(@RequestBody String name){
        return "pay restful provider " +name;
    }

    @PostMapping("/test3")
    public String test3(@RequestParam("name") String name){
        return "pay restful provider " +name;
    }
}
